package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
//一级url路径
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/login")
    public ModelAndView login(ModelAndView mv){
        //设置视图 跳转到login页面

        mv.setViewName("login");
        return mv;
    }
}
